package com.zmn.oms.persistence.interfaces.conf.attachment;
import org.apache.ibatis.annotations.Param;
import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachmentStandard;

import java.util.List;

public interface ConfOrderAttachmentStandardDao {

    /**
     * 根据 照片配置ID 查找审核标准
     *
     * @author liudi
     * @since: 2022/4/1 20:03
     * @param configAttachmentId
     * @return
     */
    ConfOrderAttachmentStandard findStandardByConfAttachmentId(@Param("confAttachmentId")Integer configAttachmentId);

    /**
     * 根据查询条件查询审核标准
     *
     * @author liudi
     * @since: 2022/1/24 18:02
     * @param confOrderAttachmentStandard
     * @return
     */
    List<ConfOrderAttachmentStandard> listByQuery(ConfOrderAttachmentStandard confOrderAttachmentStandard);

    List<ConfOrderAttachmentStandard> listByAttachmentIds(@Param("attachmentIds")List<Integer> attachmentIds);

    int insert(ConfOrderAttachmentStandard record);

    int insertSelective(ConfOrderAttachmentStandard record);

    ConfOrderAttachmentStandard selectByPrimaryKey(Integer standardId);

    int deleteByPrimaryKey(Integer standardId);

    int deleteByAttachmentId(Integer attachmentId);

    int updateByAttachmentId(ConfOrderAttachmentStandard standard);

    int updateByPrimaryKeySelective(ConfOrderAttachmentStandard record);

    int updateByPrimaryKey(ConfOrderAttachmentStandard record);
}